﻿namespace HCService.MsgHandler.SubHandler
{
	class ClientRequestRes : HandlerBase
	{
		public new string HandleTag = "Request_Res";
		public ClientRequestRes(PackHandlerCenter center)
		{
			center.RegisterPackHandle(HandleTag, Handle);
		}

		public override void Handle(Client.IClient client, Pack pack)
		{
			if(pack.HandleTag == this.HandleTag)
			{
				UnityEngine.Debug.Log("接受到请求回传");
				Proto.Event.Res ret = Proto.Event.Res.Parser.ParseFrom(pack.PackBuffer);
				UnityEngine.Debug.Log(ret.ToString());
			}
		}
	}
}
